#include "driverh.h"

#ifndef __spi1_h_
#define __spi1_h_

#ifdef   __cplusplus
extern   "C"   {
#endif

void Spi1Configuration(void);
INT8U Spi1Init(void);
void Spi1QueueFlushSendBuf(void);
void Spi1QueueFlushReceiveBuf(void);
INT8U Spi1SendStr(char *str);
void Spi1SendTriger(void);
INT8U Spi1SendNByte(INT8U *p, INT32U n);
void Spi1SendByte(INT8U Data);
INT8U Spi1ReceiveNByte(INT8U *p, INT32U n);
INT8U Spi1ReceiveByte(void);
INT16U Spi1RxPop(void);
INT8U WaitSpi1SendEnd(void);

#ifdef   __cplusplus
}
#endif

#endif /* __UART_H */
